package com.sky.ok.okex.common;

import java.util.Arrays;
import java.util.LinkedList;

/**
 * OKex合约
 * @author 余心乐sky
 * @create 2019-05-15 14:33
 **/
public class OkFutureConst extends OKV3Const {
    //季度合约交割年份
    public static final String Futuer_Years = "19";
    //季度合约交割时间
    public static final String Futuer_TIME = "0628";

    //行情数据
    public static final String FUTURE_TICKER = "futures/ticker";

    //1min K线数据
    public static final String FUTURE_KLINE_1MIN = "futures/candle60s";

    //3min K线数据
    public static final String FUTURE_KLINE_3MIN = "futures/candle180s";

    //5min K线数据
    public static final String FUTURE_KLINE_5MIN = "futures/candle300s";

    //15min K线数据
    public static final String FUTURE_KLINE_15MIN = "futures/candle900s";

    //30min K线数据
    public static final String FUTURE_KLINE_30MIN = "futures/candle1800s";

    //1hour K线数据
    public static final String FUTURE_KLINE_1HOUR = "futures/candle3600s";

    //2hour K线数据
    public static final String FUTURE_KLINE_2HOUR = "futures/candle7200s";

    //4hour K线数据
    public static final String FUTURE_KLINE_4HOUR = "futures/candle14400s";

    //6hour K线数据
    public static final String FUTURE_KLINE_6HOUR = "futures/candle21600s";

    //12hour K线数据
    public static final String FUTURE_KLINE_12HOUR = "futures/candle43200s";

    //day K线数据
    public static final String FUTURE_KLINE_DAY = "futures/candle86400s";

    //week K线数据
    public static final String FUTURE_KLINE_WEEK = "futures/candle604800s";

    //季度合约最新的最新成交价、买一价、卖一价和24交易量
    public static final LinkedList<String> SWAP_INDEX_LIST = new LinkedList<String>(Arrays.asList(
            "\"" +FUTURE_TICKER + ":"+BTC + Futuer_Years + Futuer_TIME+ "\"",
            "\"" +FUTURE_TICKER + ":"+ EOS + Futuer_Years + Futuer_TIME+ "\""
    ));

    //K线所有时间点
    public static final LinkedList<String> SWAP_K_LIST = new LinkedList<String>(Arrays.asList(
            FUTURE_KLINE_1MIN ,
            FUTURE_KLINE_3MIN ,
            FUTURE_KLINE_5MIN ,
            FUTURE_KLINE_15MIN ,
            FUTURE_KLINE_30MIN ,
            FUTURE_KLINE_1HOUR ,
            FUTURE_KLINE_2HOUR ,
            FUTURE_KLINE_4HOUR ,
            FUTURE_KLINE_6HOUR ,
            FUTURE_KLINE_12HOUR ,
            FUTURE_KLINE_DAY ,
            FUTURE_KLINE_WEEK
    ));

    //BTC季度合约
    public static final LinkedList<String> SWAP_BTC_K_LIST = new LinkedList<String>(Arrays.asList(
            "\"" +FUTURE_KLINE_1MIN +":"+ BTC + Futuer_Years + Futuer_TIME+ "\"",
            "\"" +FUTURE_KLINE_3MIN +":"+ BTC + Futuer_Years + Futuer_TIME+ "\"",
            "\"" +FUTURE_KLINE_5MIN +":"+ BTC + Futuer_Years + Futuer_TIME+ "\"",
            "\"" +FUTURE_KLINE_15MIN +":"+ BTC + Futuer_Years + Futuer_TIME+ "\"",
            "\"" +FUTURE_KLINE_30MIN +":"+ BTC + Futuer_Years + Futuer_TIME+ "\"",
            "\"" +FUTURE_KLINE_1HOUR +":"+ BTC + Futuer_Years + Futuer_TIME+ "\"",
            "\"" +FUTURE_KLINE_2HOUR +":"+ BTC + Futuer_Years + Futuer_TIME+ "\"",
            "\"" +FUTURE_KLINE_4HOUR +":"+ BTC + Futuer_Years + Futuer_TIME+ "\"",
            "\"" +FUTURE_KLINE_6HOUR +":"+ BTC + Futuer_Years + Futuer_TIME+ "\"",
            "\"" +FUTURE_KLINE_12HOUR +":"+ BTC + Futuer_Years + Futuer_TIME+ "\"",
            "\"" +FUTURE_KLINE_DAY +":"+ BTC + Futuer_Years + Futuer_TIME+ "\"",
            "\"" +FUTURE_KLINE_WEEK +":"+ BTC + Futuer_Years + Futuer_TIME+ "\""

    ));

    //EOS季度合约
    public static final LinkedList<String> SWAP_EOS_K_LIST = new LinkedList<String>(Arrays.asList(
            "\"" + FUTURE_KLINE_1MIN +":"+ EOS + Futuer_Years + Futuer_TIME + "\"",
            "\"" + FUTURE_KLINE_3MIN +":"+ EOS + Futuer_Years + Futuer_TIME+ "\"",
            "\"" + FUTURE_KLINE_5MIN +":"+ EOS + Futuer_Years + Futuer_TIME+ "\"",
            "\"" + FUTURE_KLINE_15MIN +":"+ EOS + Futuer_Years + Futuer_TIME+ "\"",
            "\"" + FUTURE_KLINE_30MIN +":"+ EOS + Futuer_Years + Futuer_TIME+ "\"",
            "\"" + FUTURE_KLINE_1HOUR +":"+ EOS + Futuer_Years + Futuer_TIME+ "\"",
            "\"" + FUTURE_KLINE_2HOUR + ":"+EOS + Futuer_Years + Futuer_TIME+ "\"",
            "\"" + FUTURE_KLINE_4HOUR +":"+ EOS + Futuer_Years + Futuer_TIME+ "\"",
            "\"" + FUTURE_KLINE_6HOUR + ":"+EOS + Futuer_Years + Futuer_TIME+ "\"",
            "\"" + FUTURE_KLINE_12HOUR +":"+ EOS + Futuer_Years + Futuer_TIME+ "\"",
            "\"" + FUTURE_KLINE_DAY + ":"+EOS + Futuer_Years + Futuer_TIME+ "\"",
            "\"" + FUTURE_KLINE_WEEK +":"+ EOS + Futuer_Years + Futuer_TIME+ "\""

    ));


}
